<?php
namespace app\index\model;

use app\common\model\SuperModel;
use app\ux\UtilDb;

class Mail extends SuperModel
{

    //重写父类初始化方法
    protected function initialize()
    {
        parent::initialize();
        $this->table = 'mail';
    }

    /**
     * 清空表，复位自增主键列
     *
     * @return   void
     */
    public function clearTbl()
    {
        UtilDb::clearTable($this->table, 'id');
    }
}
